/**
 * Copyright 2010 Victor Egea Hernando
 *
 * RockScript is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 * 
 * RockScript is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with RockScript.  If not, see <http://www.gnu.org/licenses/>.
 */
 
#include "object.h"

namespace paper{

object::object( vm_class *iclass ){
	_flags = FLG_BLOCKED_OBJECT;
	_iclass = iclass;
}

bool object::operator < ( const object *obj ) const{
	return obj < this;
}

oarray::oarray( vm_class *iclass ) : object::object( iclass ){

}

ostring::ostring( vm_class *iclass ) : object::object( iclass ){

}

ostring::ostring( vm_class *iclass, const corelib::ustring &str )
: object::object( iclass ){
	_ustring = str;
}

void ostring::set_string( const corelib::ustring &str ){
	_ustring = str;
}

corelib::ustring &ostring::str( void ){
	return _ustring;
}

}; // namespace paper;
